package fun.lifepoem.demo.common;

import fun.lifepoem.demo.domain.UserInfo;

/**
 * @author Yiwyn
 * @create 2022/12/4 2:23
 */
public class SessionManager {
    public static final UserThreadLocal USER_THREAD_LOCAL = new UserThreadLocal();

    public static void set(UserInfo userInfo) {
        USER_THREAD_LOCAL.set(userInfo);
    }

    public static UserInfo get() {
        return USER_THREAD_LOCAL.get();
    }

}
